Skip to content

Feat/app model download - #5

Merged
Ryu1845 merged 2 commits into
mainfrom
feat/app-model-download
Jul 15, 2026
Merged

Ryu1845 merged 2 commits into
mainfrom
feat/app-model-download

Conversation

@Ryu1845

@Ryu1845 Ryu1845 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Ryu1845 and others added 2 commits July 15, 2026 04:14
saucer's macOS picker returns NSURL.absoluteString — a percent-encoded
file:// URI (e.g. file:///Users/.../my%20model.gguf), not a POSIX path —
so the app's fs::exists() check rejected every picked model with
"backbone model not found". WebKitGTK returns a plain path, so the Linux
container smoke never caught it (macOS-only).

Add file_uri_to_path(): strip the file:// scheme and percent-decode.
Apply it in pick_file (clean path in the setup textbox), in launch
(before fs::exists and before save_config), and in load_config (so a
config saved with a bad URI self-heals on next boot / auto-launch).
Plain paths have no scheme and pass through untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The desktop app could only *pick* existing .gguf files, so a user without
models was stuck — while the start-zonos2 launchers download-if-missing.
Add the same one-click path to the app's setup page: choose a quant and hit
"Download & Launch" to fetch backbone + dac + (optional) spk-encoder from the
public HF GGUF repo into <config>/models, with a live progress bar; then it
launches as usual. "I already have the model files" still reveals the native
pickers.

Implementation mirrors the launcher and the app's existing ffmpeg fetch:
system curl to a .part with resume + rc-33 (416) handling, ZONOS2_BASE_URL
override, spk-encoder failure non-fatal (voice cloning disabled). Download
runs on a background thread; the page polls a new download_status() exposed
fn (byte count from the .part, denominator from a curl -sIL HEAD, falling
back to a size table). A ZONOS2_APP_SELFTEST_DOWNLOAD=<quant> seam runs the
download headlessly for tests/app-download-smoke.sh, wired into the
linux-app CI job.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@Ryu1845
Ryu1845 merged commit 4ebafdc into main Jul 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant